import request from '@/utils/request'
// 订单管理----------获取订单列表
export function getOrderList({ page, condition, start_time, end_time, status }) {
  return request({
    url: '/api/back/offline/order',
    method: 'get',
    params: { type: 'lists', per_page: 5, page, condition, start_time, end_time, status }
  })
}
// 订单管理----------获取订单详细
export function getOrderDetail(order_no) {
  return request({
    url: '/api/back/offline/order',
    method: 'get',
    data: { status: 'pass' },
    params: { type: 'details', order_no }
  })
}
// 删除
export function deleteOrderItem(order_no) {
  return request({
    url: '/api/back/offline/order',
    method: 'post',
    params: { type: 'delete' },
    data: { order_no }
  })
}
